package com.mmall.seckill.common.redis.keyCode;

import com.mmall.seckill.common.redis.keyCode.impl.BasePrefix;

/**
 * Created by megan on 2018/8/6.
 */
public class AccessKey extends BasePrefix {
    public AccessKey(int ex,String prefix) {
        super(ex,prefix);
    }

    public static AccessKey access = new AccessKey(5,"access");

    public static AccessKey withExpire(int expireSeconds) {
        return new AccessKey(expireSeconds, "access");
    }
}
